package com.yuelu.community.community.service;

import com.yuelu.community.community.dao.UserMapper;
import com.yuelu.community.community.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName: UserService
 * Description:
 *
 * @Author 文勇
 * @Create 2024/8/12 21:25
 * @Version 3.0
 */
//@Mapper报错
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;
    public User findUserById(int id){
        return userMapper.selectById(id);
    }
}
